package entity;

public class Goods {
        private int goodsId;           //自增编号
        private String goodsSn;        //商品编号
        private String goodsName;      //商品名称
        private String goodsImg;       //商品图片（路径）
        private String goodsThums;     //商品略缩图（路径）
        private int brandId;           //品牌id
        private double marketPrice;    //市场价
        private double shopPrice;      //店铺价格
        private int goodsStock;        //商品总库存
        private int saleCount;         //销售量
        private int isBook;            //是否接受预定 ->该字段基本无用
        private int bookQuantity;      //允许最大预定数量 ->该字段基本无用
        private int warnStock;         //商品库存预警数量
        private int isSale;            //是否上架 0:不上架 1:上架
        private String saleTime;       //上架时间
        private int isBest;            //是否精品 0否 1是
        private int isHot;             //是否热销产品 0否 1是
        private int isNew;             //是否新品 0否 1是
        private int isAdminRecom;      //是否推荐 0不推荐 1推荐
        private String  recommDesc;    //促销信息
        private int  goodsTypeId;      //商品所属分类
        private String goodsType;      //商品所属分类
        private String  goodsDesc;     //商品描述
        private String  goodsKeywords; //商品SEO关键字
        private int  goodsFlag;        //删除标志 -1删除 1有效
        private String  createTime;    //创建时间

        /**
         * 无参构造
         */
        public Goods() {
        }

        public String getGoodsType() {
            return goodsType;
        }

        public void setGoodsType(String goodsType) {
            this.goodsType = goodsType;
        }

        /**
         * 有参构造
         * @param goodsTypeId 商品所属分类
         */
        public Goods(int goodsTypeId) {
            this.goodsTypeId = goodsTypeId;
        }

        public int getGoodsId() { return goodsId; }
        public void setGoodsId(int goodsId) { this.goodsId = goodsId; }

        public String getGoodsSn() { return goodsSn; }
        public void setGoodsSn(String goodsSn) { this.goodsSn = goodsSn; }

        public String getGoodsName() { return goodsName; }
        public void setGoodsName(String goodsName) { this.goodsName = goodsName; }

        public String getGoodsImg() { return goodsImg; }
        public void setGoodsImg(String goodsImg) { this.goodsImg = goodsImg; }

        public String getGoodsThums() { return goodsThums; }
        public void setGoodsThums(String goodsThums) { this.goodsThums = goodsThums; }

        public int getBrandId() { return brandId; }
        public void setBrandId(int brandId) { this.brandId = brandId; }

        public double getMarketPrice() { return marketPrice; }

        public void setMarketPrice(double marketPrice) { this.marketPrice = marketPrice; }
        public double getShopPrice() { return shopPrice; }

        public void setShopPrice(double shopPrice) { this.shopPrice = shopPrice; }
        public int getGoodsStock() { return goodsStock; }

        public void setGoodsStock(int goodsStock) { this.goodsStock = goodsStock; }
        public int getSaleCount() { return saleCount; }

        public void setSaleCount(int saleCount) { this.saleCount = saleCount; }
        public int getIsBook() { return isBook; }

        public void setIsBook(int isBook) { this.isBook = isBook; }
        public int getBookQuantity() { return bookQuantity; }

        public void setBookQuantity(int bookQuantity) { this.bookQuantity = bookQuantity; }
        public int getWarnStock() { return warnStock; }

        public void setWarnStock(int warnStock) { this.warnStock = warnStock; }
        public int getIsSale() { return isSale; }

        public void setIsSale(int isSale) { this.isSale = isSale; }
        public String getSaleTime() { return saleTime; }

        public void setSaleTime(String saleTime) { this.saleTime = saleTime; }
        public int getIsBest() { return isBest; }

        public void setIsBest(int isBest) { this.isBest = isBest; }
        public int getIsHot() { return isHot; }

        public void setIsHot(int isHot) { this.isHot = isHot; }
        public int getIsNew() { return isNew; }

        public void setIsNew(int isNew) { this.isNew = isNew; }
        public int getIsAdminRecom() { return isAdminRecom; }

        public void setIsAdminRecom(int isAdminRecom) { this.isAdminRecom = isAdminRecom; }
        public String getRecommDesc() { return recommDesc; }

        public void setRecommDesc(String recommDesc) { this.recommDesc = recommDesc;}

        public int getGoodsTypeId() { return goodsTypeId; }
        public void setGoodsTypeId(int goodsTypeId) { this.goodsTypeId = goodsTypeId; }

        public String getGoodsDesc() { return goodsDesc; }
        public void setGoodsDesc(String goodsDesc) { this.goodsDesc = goodsDesc; }

        public String getGoodsKeywords() { return goodsKeywords; }
        public void setGoodsKeywords(String goodsKeywords) { this.goodsKeywords = goodsKeywords; }

        public int getGoodsFlag() { return goodsFlag; }
        public void setGoodsFlag(int goodsFlag) { this.goodsFlag = goodsFlag; }

        public String getCreateTime() { return createTime; }
        public void setCreateTime(String createTime) { this.createTime = createTime; }
}
